package com.yzt.zhuju.network.entity.mine;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * author : bob
 * date   : 2023/2/10
 * desc   :
 */
public class UserLevelBaseBean implements Parcelable {

    private UserLevelBaseInfo charms;

    private UserLevelBaseInfo riches;

    private List<UserLevelBean> charmsConfig;

    private List<UserLevelBean> richesConfig;

    public UserLevelBaseBean() {
    }

    protected UserLevelBaseBean(Parcel in) {
        charms = in.readParcelable(UserLevelBaseInfo.class.getClassLoader());
        riches = in.readParcelable(UserLevelBaseInfo.class.getClassLoader());
        charmsConfig = in.createTypedArrayList(UserLevelBean.CREATOR);
        richesConfig = in.createTypedArrayList(UserLevelBean.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(charms, flags);
        dest.writeParcelable(riches, flags);
        dest.writeTypedList(charmsConfig);
        dest.writeTypedList(richesConfig);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserLevelBaseBean> CREATOR = new Creator<UserLevelBaseBean>() {
        @Override
        public UserLevelBaseBean createFromParcel(Parcel in) {
            return new UserLevelBaseBean(in);
        }

        @Override
        public UserLevelBaseBean[] newArray(int size) {
            return new UserLevelBaseBean[size];
        }
    };

    public UserLevelBaseInfo getCharms() {
        return charms;
    }

    public void setCharms(UserLevelBaseInfo charms) {
        this.charms = charms;
    }

    public UserLevelBaseInfo getRiches() {
        return riches;
    }

    public void setRiches(UserLevelBaseInfo riches) {
        this.riches = riches;
    }

    public List<UserLevelBean> getCharmsConfig() {
        return charmsConfig;
    }

    public void setCharmsConfig(List<UserLevelBean> charmsConfig) {
        this.charmsConfig = charmsConfig;
    }

    public List<UserLevelBean> getRichesConfig() {
        return richesConfig;
    }

    public void setRichesConfig(List<UserLevelBean> richesConfig) {
        this.richesConfig = richesConfig;
    }
}
